package com.smart.campus.interfaces;

import com.smart.campus.dto.SysUser;
import com.smart.campus.pojo.PagedResponse;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @BelongsProject: smart-campus
 * @BelongsPackage: com.smart.campus.interfaces
 * @Author: Y S Z
 * @CreateTime: 2024-09-25  10:46
 * @Description: TODO
 * @Version: 1.0
 */
public interface ShSchoolTeacherApi {
    @RequestMapping(value = "shSchoolTeacher/findShSchoolTeacherList")
    public List<SysUser> findShSchoolTeacherList(@RequestBody SysUser sysUser);

    @RequestMapping(value = "pageSchoolTeacher")
    public PagedResponse<SysUser> pageSchoolTeacher(@RequestBody SysUser sysUser,@RequestParam(value = "pageNum")Integer pageNum,@RequestParam(value = "pageSize")Integer pageSize);

    @RequestMapping(value = "shSchoolTeacher/addSchoolTeacher")
    public void addSchoolTeacher(@RequestBody SysUser sysUser);

    @RequestMapping(value = "shSchoolTeacher/delSchoolTeacher")
    public void delSchoolTeacher(@RequestParam(value = "userId")Long userId);

    @RequestMapping(value = "shSchoolTeacher/findSchoolTeacherId")
    public SysUser findSchoolTeacherId(@RequestParam(value = "userId")Long userId);

    @RequestMapping(value = "shSchoolTeacher/updSchoolTeacher")
    public void updSchoolTeacher(@RequestBody SysUser sysUser);
}
